
local CMD_EMP = 32288
local CMD_JUMP = 32298
local CMD_RAMPAGE = 32299
local CMD_REPAIR = 32300

-- -- all these aren't used any more - remove when it's working (and replaced in the command descriptions below)
-- local CMD_UPEMPLVL = 33337
-- local CMD_UPRAMPAGELVL = 33335
-- local CMD_UPJUMPLVL = 33336
-- local CMD_UPREPAIRLVL = 33338

--- this is used instead now. (erm - not in this file though....)
local CMD_UPABILITYONE = 33330
local CMD_UPABILITYTWO = 33331

local knight=UnitDefNames.knight.id
local bishop=UnitDefNames.bishop.id
local rook=UnitDefNames.rook.id
local queen=UnitDefNames.queen.id


local rampageDesc = {
	name="Rampage",
	tooltip="higher rate of attack, and speed increase",
	action="rampage",
	id=CMD_RAMPAGE,
	type=CMDTYPE.ICON,
}

local jumpDesc = {
	name="Jump",
	tooltip="jump over a certain distance",
	action="jump",
	id=CMD_JUMP,
	type=CMDTYPE.ICON_MAP,
	cursor="Unload units",
}

local empDesc = {      --settings for the stun button
    name="EMP",
    tooltip="Stuns all enemy units in the vicinity",
    action="emp",
    id=CMD_EMP,
    type=CMDTYPE.ICON,
}

local repairDesc = {      --settings for the stun button
    name="Repair",
    tooltip="Repairs a unit",
    action="repair",
    id=CMD_REPAIR,
    type=CMDTYPE.ICON_MAP,
}

local upRampageLvl = {
	name="Up Rampage Lvl",
	tooltip="higher rate of attack, (and speed increase - soon :P)",
	action="Ramplevelup",
	id=CMD_UPRAMPAGELVL,
	type=CMDTYPE.ICON,
}

local upJumpLvl = {
	name="Up Jump Lvl",
	tooltip="increased jump range, and speed increase",
	action="Jumplevelup",
	id=CMD_UPJUMPLVL,
	type=CMDTYPE.ICON,
}

local upEmpLvl = {
    name="Up Emp Lvl",
    tooltip="improves Stun",
    action="emp",
    id=CMD_UPEMPLVL,
    type=CMDTYPE.ICON,
}

local upRepairLvl = {
    name="Up Repair Lvl",
    tooltip="improves Stun",
    action="repair",
    id=CMD_UPREPAIRLVL,
    type=CMDTYPE.ICON,
}


local abilityTable = {
	[knight] = {		-- without the brackets, it just takes "knight" as text... think I've made that mistake before
		abilityOne = jumpDesc,
		upabOne = upJumpLvl,
		abilityTwo = rampageDesc, 
		upabTwo = upRampageLvl,
		abiltyThree = nil,
		},
	-- bishop = {
		-- abilityOne = , 
		-- abilityTwo = ,
		-- abiltyThree = ,
		-- },
	-- rook = {
		-- abilityOne = , 
		-- abilityTwo = ,
		-- abiltyThree = ,
		-- },
	[queen] = {
		abilityOne = repairDesc, 
		upabOne = upRepairLvl,
		abilityTwo = empDesc,
		upabTwo = upEmpLvl,
		abiltyThree = nil,
		},
	}
return abilityTable,rampageDesc,jumpDesc,upRampageLvl,upJumpLvl,empDesc,upEmpLvl,repairDesc,upRepairLvl	